<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>湖北职业技术学院财务信息查询系统</title>
<LINK href="style/css.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
function deleate(id){
	if (confirm("删除此数据后可能导致操作异常,您确定要删除此条信息？")){
	window.location.href='user.do?method=delete&id='+id;
	}
	return false;
}

}
</script>
</head>
<body>
<table width="85%" border="0" align="center" cellpadding="0"
	cellspacing="1" class="tableline" id="Table3">
	<tr class="m_lef">
		<td height="40" colspan="9" align="center" bgcolor="#ffffff"
			class="STYLE4">教职工管理</td>
	</tr>
	<tr>
		<td height="30" colspan="9" align="center" bgcolor="#ffffff"
			class="c_foot"><a href="javascript:void(0);" onClick="window.location.href='employee.do?method=add'">添加教职工信息>></a></td>
	</tr>
</table>
<br />
<table id="Table4" bordercolor="#ffffff" height="30" cellspacing="1"
	cellpadding="1" width="85%" align="center" bgcolor="#999999" border="1">
	<tr align="center" bgcolor="#ffffff" height="25">
		<td width="6%"><font color="#000000"><b>职工编号</b></font></td>
		<td width="8%"><font color="#000000"><b>职工姓名</b></font></td>
		<td width="9%"><font color="#000000"><b>职工职务</b></font></td>
		<td width="9%"><font color="#000000"><b>职工职称</b></font></td>
		<td width="9%"><font color="#000000"><b>职工类别</b></font></td>
		<td width="11%"><font color="#000000"><b>所属部门</b></font></td>
		<td width="7%"><font color="#000000"><b>工作状态</b></font></td>
		<td width="9%"><font color="#000000"><b>入职时间</b></font></td>
		<td width="12%"><font color="#000000"><b>身份证号码</b></font></td>
		<td width="12%"><font color="#000000"><b>银行账号</b></font></td>
		<td width="9%"><font color="#000000"><b>操作</b></font></td>
	</tr>
	<c:if test="${!empty employees}">
		<c:forEach items="${employees}" var="employee">
			<tr align="center" bgcolor="#f2f2f2"
				style="BACKGROUND-COLOR: #f2f2f2"
				onMouseOver="this.style.backgroundColor='#FFCC99'"
				onmouseout="this.style.backgroundColor='#f2f2f2'" height="25">
				<td>${employee.empId }</td>
				<td>${employee.username }</td>
				<td>${employee.empPost.name }</td>
				<td>${employee.empTitle.name}</td>
				<td>${employee.empType.name }</td>
				<td>${employee.department.deptName }</td>
				<c:if test="${employee.status eq 0}">
					<td>离职</td>
				</c:if>
				<c:if test="${employee.status eq 1}">
					<td>在职</td>
				</c:if>
				<td>${employee.empDay }</td>
				<td>${employee.idCard }</td>
				<td>${employee.bankCard }</td>
				<td align="center"><a
					href="#">编辑</a>&nbsp; <a
					href="javascript:void(0);">删除</a></td>
			</tr>
		</c:forEach>
	</c:if>
</table>
</body>
</html>